package cn.oniokey.waterDetection.config;

import lombok.Getter;

@Getter
public enum ResultCode {
    RC200(200, "操作成功"),
    RC4010(4010, "登录失败"),
    RC4011(4011, "权限不足"),
    RC4012(4012, "Token 篡改"),
    RC4013(4013, "Token 过期"),
    RC4014(4014, "Token 无效"),
    RC4020(4020, "用户已存在"),
    RC900(900, "操作失败");

    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
